package com.grm.sys.mapper;

import com.grm.sys.model.SysUser;
import com.grm.sys.request.user.SysUserQueryParam;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface SysUserMapper {
    List<SysUser> querySelective(@Param("queryParam") SysUserQueryParam queryParam,@Param("childDeptIds")List<Long> childDeptIds);
    
    SysUser queryByUsername(@Param("username") String username);

    SysUser queryById(@Param("id")Long id);

    void updatePassword(@Param("id") Long id, @Param("password") String password);

    void add(SysUser sysUser);

    void update(SysUser sysUser);

    void deleteByIds(@Param("ids")List<Long> ids);

    List<SysUser> queryAll();

    List<SysUser> queryByDeptId(@Param("deptId") Long deptId);

    List<SysUser> queryByIds(@Param("ids") List<Long> ids);
}
